﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ECS.DAL.Entity
{
    public class Zone : ObjectContext
    {
        #region private properties
        private string _zoneId = string.Empty;
        private string _whMasterId = string.Empty;
        private string _zoneName = string.Empty;
        private string _description = string.Empty;
        private string _zoneType = string.Empty;
        private string _isActive = string.Empty;
        private DateTime _createDate;
        private string _createBy = string.Empty;
        #endregion

        #region public properties
        public string ZoneId
        {
            get { return _zoneId; }
            set
            {
                _zoneId = value;
                if (!string.IsNullOrEmpty(value))
                {
                     UpdateObject();
                }
            }
        }
        public string WhMasterId
        {
            get { return _whMasterId; }
            set
            {
                _whMasterId = value;
                 UpdateObject();

            }
        }
        public string ZoneName
        {
            get { return _zoneName; }
            set
            {
                _zoneName = value;
                 UpdateObject();

            }
        }
        public string Description
        {
            get { return _description; }
            set
            {
                _description = value;
                 UpdateObject();

            }
        }
        public string ZoneType
        {
            get { return _zoneType; }
            set
            {
                _zoneType = value;
                 UpdateObject();

            }
        }
        public string IsActive
        {
            get { return _isActive; }
            set
            {
                _isActive = value;
                 UpdateObject();

            }
        }
        public DateTime CreateDate
        {
            get { return _createDate; }
            set
            {
                _createDate = value;
                 UpdateObject();

            }
        }
        public string CreateBy
        {
            get { return _createBy; }
            set
            {
                _createBy = value;
                 UpdateObject();

            }
        }
        public string AppId { set; get; }
        public string Device { set; get; }
        public string UserId { set; get; }
        #endregion

        #region private methods
        
        #endregion
    }
}
